<?php
$j=1;
// 第一层循环
for ($i = 1; $i <= 3; $i++) {
    // 中间层循环
    while ($j++) {
        // 内层循环
        echo $j,"  break 执行 \n";
        for ($k = 1; $k <= 5; $k++) {
            echo "k:",$k."\n";
            if ($k == 3) {
                break 2; //直接跳出最外层循环，继续循环
            }

        }
        echo $j," 执行结束== ";
    }
}
?>
<?php
for ($i = 1; $i <= 3; $i++) {
    // 中间层循环
    while ($j++) {
        // 内层循环
        echo $j," continue 执行 \n";
        for ($k = 1; $k <= 5; $k++) {
            echo "k:",$k."\n";
            if ($k == 3) {
                continue 3; //直接跳过3层循环，从最外层还是继续循环
            }

        }
        echo $j," 执行结束== ";
    }
}
?>